home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
C_QNA.ARJ
/
GUITCPP.BCP
< prev
next >
Wrap
Text File
|
1991-03-27
|
687b
|
14 lines
QUESTION: The demo that accompanies the book "Graphic User Interfaces for
Turbo C++" compiles file under Turbo C++ but will not compile
with Borland C++. I get undefined symbols during link for three
member functions defined in the PainoPage class. What's wrong?
ANSWER: There is a difference between how TC++ and BC++ implement the
C++ specification. BC++ 2.0 requires that you define the
static member variables at file scope. That is, outside any
function or class, you need a line like:
int PianoPage::recorder_mode = 0;
and similarly for the other two statics.